package com.twu.biblioteca;

public class User {
    private String name;
    private String password;
    private String email;
    private String phoneNo;

    public User(String name, String password, String email, String phoneNo) {
        this.name = name;
        this.password = password;
        this.email = email;
        this.phoneNo = phoneNo;
    }

    public String getName() {
        return name;
    }

    public String getPassword() {
        return password;
    }

    public String getEmail() {
        return email;
    }

    public String getPhoneNo() {
        return phoneNo;
    }

    @Override
    public boolean equals(Object o) {
        User user = (User) o;
        return this.name.equals(user.getName()) && this.password.equals(user.getPassword());
    }
}
